import axios from '@/http/axios';

// 学生列表
export const sysstudentlist = (data) => {
  return axios({
    url: '/admin/service/sys_student_list',
    method: 'post',
    data
  });
};

//校区/楼栋/楼层/房屋查询接口
export const arealevelfind = (data) => {
  return axios({
    url: '/admin/service/area_level_find',
    method: 'post',
    data
  });
};

//获取机构
export const syspartyorganize = (data) => {
  return axios({
    url: '/admin/service/sys_group_array', //admin/service/sys_group_array
    method: 'post',
    data
  });
};

//学生查询已选权限组和未选权限组列表接口---列表
export const groupsearch = (data) => {
  return axios({
    url: '/admin/service/group_search',
    method: 'post',
    data
  });
};

//学生查询已选权限组和未选权限组列表接口---修改
export const usergroupedit = (data) => {
  return axios({
    url: '/admin/service/user_group_edit',
    method: 'post',
    data
  });
};

//通行记录接口
export const syspasslist = (data) => {
  return axios({
    url: '/admin/service/sys_pass_list',
    method: 'post',
    data
  });
};

//上传头像
export const sysuseravatar = (data) => {
  return axios({
    url: '/admin/service/h5_avatar_add',
    method: 'post',
    data
  });
};
